home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / util4 / 0utils.lha / 0Utils / ScriptName.doc < prev    next >
Text File  |  1995-09-05  |  1KB  |  70 lines

  1.  
  2.  
  3.  
  4.     NAME
  5.     ScriptName
  6.  
  7.     SYNOPSIS
  8.     ScriptName -  output the (temp) name of the current script  - Requires v37
  9.  
  10.     INPUTS
  11.     ""
  12.  
  13.     DESCRIPTION
  14.  
  15.     ScriptName just tries to output the contents of
  16.     process->cli->commandfile. this value is defined only,
  17.     if:
  18.         1) the command was called from inside a script, AND
  19.         2) the script had to be buffered in "T:Command-??-???"
  20.            this is, e.g. if the script contained a ".KEY"
  21.            directive or was read from an interactive device.
  22.  
  23.      RESULT
  24.     "T:Command-xx-Tyy" if possible.
  25.     
  26.  
  27.     
  28.         
  29.  
  30.     NOTES
  31.     * CLI - only
  32.  
  33.     * should compile with SAS-C
  34.     
  35.  
  36.     BUGS
  37.  
  38.     The result is most likely something like
  39.     'T:Command-??-T??' with ? being numbers,
  40.     if the system 'decided' to create a tempfile;
  41.     Up to now we can not get another result,
  42.     for if no tempfile is created, we get an
  43.     empty string =8-(.
  44.     
  45.  
  46.     EXAMPLES
  47.  
  48.     >ScriptName
  49.     "ScriptName: object is not of required type"
  50.         (Was: "* Not in a Script *")
  51.  
  52.     >echo "scriptname" | srun execute in:
  53.     "T:Command-00-T04"
  54.     
  55.  
  56.     HISTORY
  57.  
  58.     16-02-95 b_noll created
  59.     20-02-95 b_noll restructured source
  60.     21-02-95 b_noll added version/format-prefix/offset
  61.     27-02-95 b_noll replace BSTR extraction by FPrintf %b
  62.     20-03-95 b_noll added args diagnostics
  63.     19-08-95 b_noll created .data file
  64.     
  65.  
  66.     AUTHOR
  67.     Bernd Noll, Brunnenstrasse 55, D-67661 Kaiserslautern
  68.     noll@student.uni-kl.de
  69.  
  70.